
.g-main{
  height: 0;
  display: flex;
  flex-direction: column;
  >.tab_wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 64rpx;
    background: #ffffff;

    >.tab {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      color: gray;

      &.active {
        color: #01C257;
      }
    }

    >.bar {
      position: absolute;
      left: 25%;
      bottom: 0;
      transform: translateX(-50%);
      transition: all 0.3s;
      width: 3em;
      height: 6rpx;
      background: #01C257;

      &.half {
        left: 75%;
      }
    }
  }

  >.content-wrap{
    height: 0;
    flex: 1;
    overflow: hidden;
    .tab_content {
      display: flex;
      height: 100%;
      width: 200%;
      overflow-y: auto;
      transition: all 0.3s;
      transform: translateX(0%);

      &.half {
        transform: translateX(-50%);
      }

      >.content_wrap {
        flex: 1;
        display: flex;
        flex-direction: column;


      }
    }
  }
}
